package ysq.xyg.web.service;



import ysq.xyg.base.model.dto.ReturnEntity;
import ysq.xyg.base.service.BaseService;
import ysq.xyg.web.model.po.WebAdvise;
import ysq.xyg.sys.model.po.SysUser;
import ysq.xyg.web.model.vo.WebAdviseVo;

import java.util.List;

/**
 * 业务模块-建议service接口
 *
 * @author shengQiang yu
 * @date 2019-4-26 9:34:21
 */
public interface WebAdviseService extends BaseService<WebAdvise> {
    /**
     * 分页查询
     *
     * @param webAdviseVo 对象
     * @param pageSize 当前页面
     * @param pageNum 页面数量
     * @return ReturnEntity 对象
     * @author shengQiang yu
     * @date 2019-4-26 9:34:21
     */
    ReturnEntity page(WebAdviseVo webAdviseVo, int pageSize, int pageNum);
    /**
     * 修改
     *
     * @param webAdviseVo 对象
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author shengQiang yu
     * @date 2019-4-26 9:34:21
     */
    ReturnEntity addOrUpdate(WebAdviseVo webAdviseVo, SysUser currentUser);
    /**
     * 删除
     *
     * @param id 主键id删除
     * @param currentUser 当前用户
     * @return ReturnEntity 对象
     * @author shengQiang yu
     * @date 2019-4-26 9:34:21
     */
    ReturnEntity delete(String id, SysUser currentUser);
    /**
     * 获取集合
     *
     * @param webAdviseVo 对象
     * @return List<WebAdvise> WebAdvise集合
     * @author shengQiang yu
     * @date 2019-4-26 9:34:21
     */
    List<WebAdvise> acceptList(WebAdviseVo webAdviseVo);
}
